import Vue from 'vue'
import store from '@/store'
// 用于多角色下的tabbar切换

Vue.prototype.$tabBarList = () => {

	let list = [];
	if (store.state.tabBarList.length === 0) {
		list = Vue.prototype.$cxTabBar.normal;
	} else {
		list = store.state.tabBarList;
	}
	return list;
}

Vue.prototype.$setTabBarList = (roleId) => {
	let list = [];
	if (roleId == 0) {
		list = Vue.prototype.$cxTabBar.normal;
	} else {
		list = Vue.prototype.$cxTabBar.admin;

	}

	store.state.tabBarList = list;



}